﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Clipper.Model;
using System.Threading;
using Global;

namespace Clipper.BLL.DetectChain
{
    /// <summary>
    /// 加样
    /// </summary>
    public class AddSample:ApplianceComponent
    {
        #region 变量和属性
        /// <summary>
        /// 执行下一步信号量
        /// </summary>
        static AutoResetEvent mCompleteReset = new AutoResetEvent(false);
        static DestinationStatusEnum detectionStatus;
        /// <summary>
        /// 状态
        /// </summary>
        public override DestinationStatusEnum DetectionStatus
        {
            get
            {
                return detectionStatus;
            }
            set
            {
                detectionStatus = value;
            }
        }
        #endregion
        public override void Run(ReactionStrip strip)
        {
            if (ServiceProvider.IsSimulate)
            {
                Simulate(strip);
            }
            NextComponent.Run(strip);
        }
        public override void Simulate(ReactionStrip strip)
        {
            strip.Note = this.GetType().Name;
            Thread.Sleep(1000);
            Console.WriteLine(strip.Note);
            throw new NotImplementedException();
        }

        public static void CompleteSingle()
        {
            throw new NotImplementedException();
        }
    }
}
